<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>问题报告</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link href="${request.getContextPath()}/css/common/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="${request.getContextPath()}/css/font-awesome/font-awesome.css?v=4.3.0" rel="stylesheet">
    <link href="${request.getContextPath()}/css/common/style.css?v=2.2.0" rel="stylesheet">
    <link href="${request.getContextPath()}/css/jqgrid/ui.jqgrid.css" rel="stylesheet">
	<style type="text/css">
		#wrapper{
			margin-top:52px;
		}
		.distext{
			word-break: break-all;
			text-overflow: ellipsis;
			white-space: nowrap;
			display: inline-block;
			overflow: hidden;
			max-width: 300px;
		}
		.test_log_operation{height:30px; margin-bottom:10px;margin-top:10px;}
		.test_log_operation .search{background:url(../images/search_bg.png) no-repeat; height:30px; width:220px;}
		.test_log_operation .search:hover{background-position:left bottom;}
		.test_log_operation .search .input_search{border:none; background:none; height:30px; width:177px; padding-left:4px; font-family: "Microsoft YaHei"; float:left;}
		.test_log_operation .search .input_btn{border:none; height:30px; width:38px; background:none; cursor:pointer;}
		.test_log_operation .search{background:url(../images/search_bg.png) no-repeat; height:30px; width:220px;}
		
		.test_log_operation .log_type strong{float:left; height:30px; line-height:30px; width:80px;}
		.test_log_operation .log_type .btn_labels{margin-left:80px;}
		.test_log_operation .log_type .btn_labels a{display:inline-block; background-color:#FFF; border:#4F83C3 solid 1px; border-radius:4px; color:#666; height:28px; line-height:28px; width:100px; text-align:center; text-decoration:none; margin-right:10px;}
		.test_log_operation .log_type .btn_labels a i{display:inline-block; height:14px; width:14px; border-radius:2px; vertical-align:-3px; margin-right:4px;}
		.test_log_operation .log_type .btn_labels a:hover{background-color:#f7faf9;}
		.test_log_operation .log_type .btn_labels a.cur{background-color:#4F83C3; color:#FFF;}
		
		.test_log_operation .log_type .btn_labels .disabled{background-color:#EEE; border:#E5E5E5 solid 1px; cursor:default;}
		.test_log_operation .log_type .btn_labels .disabled i{background-color:#D5D5D5!important; border:#D5D5D5 solid 1px!important;}
		.test_log_operation .log_type .btn_labels .disabled:hover{background-color:#EEE; border:#DDD solid 1px;}
		
		
		.test_log_operation .log_type_other{float:right;}
		.test_log_operation .log_type_other span{margin-left:20px;}
		.test_log_operation label{font-weight:bold;}
		.test_log_operation label input{vertical-align:-2px;}
	</style>
	<script type="text/javascript">
		var typeStr = '${typeStr}';
		var contextPath = '${request.getContextPath()}';
	</script>
</head>

<body>
	<div>
		<#include "/public/header.html"/>
	</div>
    <div id="wrapper">
    	<div>
    		<#include "/public/report-left.html"/>
    	</div>
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <!-- <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="index.html#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>                 
                </nav>
            </div>   -->  

	 <div class="wrapper wrapper-content" id="wrapper-content">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>问题类型分布</h5>
                                <input type="hidden" id="typeList" >
                            </div>
                            <div class="ibox-content">
                                <div class="row">
                                    <div class="col-lg-7">
                                        <div class="echarts" id="interface-pie-type"></div>
                                    </div>
                        <div class="col-lg-5">
                         <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <table class="table table-bordered">
                                    <thead>
                                        <tr>
                                            <th>失败类型</th>
                                            <th>失败原因</th>
                                            <th>失败用例数</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <#if typeList??>
                                    	 <#list typeList as type>
                                    	 	<tr>
                                    	 		<td>${type.error_status}</td>
                                    	 		<td>${type.error_type_desc}</td>
                                    	 		<td>${type.typenum}</td>
                                    	 	</tr>
                                    	 </#list>
                                    </#if>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                      </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
				<div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>问题原因分析</h5>
                            </div>
                            <div class="ibox-content">
                                <div class="row">
                                    <div class="col-lg-7">
                                        <div class="echarts" id="interface-pie-reason"></div>
                                    </div>
                                    <div class="col-lg-5">
                         <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <table class="table table-bordered">
                                    <thead>
                                        <tr>
                                            <th>错误定位</th>
                                            <th>测试数(次)</th>
                                            <th>影响用例数</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>Java Runtime error</td>
                                            <td>3</td>
                                            <td>23</td>
                                        </tr>
                                        <tr>
                                            <td>NDK error:SIGSEGV</td>
                                            <td>2</td>
                                            <td>27</td>
                                        </tr>
                                        <tr>
                                            <td>Java Runtime error:java.lang.OutOfMemoryError</td>
                                            <td>6</td>
                                            <td>65</td>
                                        </tr>
                                        <tr>
                                            <td>code error</td>
                                            <td>6</td>
                                            <td>65</td>
                                        </tr>
                                    </tbody>
                                </table>

                            </div>
                        </div>
                      </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
				
				<div class="row">
                        <div class="col-lg-12">
                            <div class="ibox float-e-margins">
                                <div class="ibox-title">
                                    <h5>问题列表</h5>
                                    <div class="ibox-tools">
                                        <a class="collapse-link">
                                            <i class="fa fa-chevron-up"></i>
                                        </a>
                                    </div>
                                </div>
                                <div class="ibox-content">
                                	<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid">
                                    <div class="row">										
                                        <div class="col-sm-9 m-b-xs">
											<h2><strong style="float:left;line-height:44px;">问题类型：</strong></h2>
                                            <div data-toggle="buttons" class="btn-group">
                                                <button type="button" class="btn btn-primary" id="showtotal"  onclick="inter.index.queryInterError();">显示所有的数据</button>
												<button type="button" class="btn btn-white" id="showfail" onclick="inter.index.showInterFailError();">显示失败的数据</button>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <div class="input-group" style="margin-top:10px;">
                                                <input type="text" placeholder="错误定位" class="input-sm form-control" id="querytext"> <span class="input-group-btn">
												<button type="button" class="btn btn-sm btn-primary" onclick="inter.index.queryInterError();">搜索</button> </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="table-responsive" id="errorListDiv">
                                    	<#include "/main/errorlist.html"/>
                                    </div>
                                </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        	</div>
    	</div>

    <!-- Mainly scripts -->
    <script src="${request.getContextPath()}/js/common/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="${request.getContextPath()}/js/common/json2.js"></script>
	<script type="text/javascript" src="${request.getContextPath()}/js/common/common.js"></script>
    <script src="${request.getContextPath()}/js/common/bootstrap.min.js?v=3.4.0"></script>
    <script src="${request.getContextPath()}/js/common/jquery.metisMenu.js"></script>
	<script src="${request.getContextPath()}/js/report/echarts-all.js"></script>
 	<script src="${request.getContextPath()}/js/report/echarts-interface.js"></script>
    <!-- Custom and plugin javascript -->
    <script src="${request.getContextPath()}/js/common/hplus.js?v=2.2.0"></script>
    <script src="${request.getContextPath()}/js/report/dataTables.bootstrap.js?v=2.2.0"></script>
    <script src="${request.getContextPath()}/js/report/jquery.dataTables.js?v=2.2.0"></script>
    <script src="${request.getContextPath()}/js/jqgrid/jquery.metisMenu.js"></script>
    <script src="${request.getContextPath()}/js/jqgrid/grid.locale-cn.js"></script>
    <script src="${request.getContextPath()}/js/jqgrid/jquery.jqGrid.min.js"></script>
    
	
</body>

</html>